<?php defined('BASEPATH') or exit('No direct script access allowed');

class Plugin_Lang extends Plugin
{

	public function current(){
		$lang = $this->session->userdata('ss_lang');
		return $lang;
	}
	
	public function load(){
		$module =  $this->attribute('module');
		$file =  $this->attribute('file');
		$this->load->language($module.'/'.$file,$this->lang_current);
	}
}
